//引入封装的公共的请求插件
import { POST, UPLOAD } from '@/services/request.js'

export default {
    register(data = {}) {
        //注册接口 
        return POST({
            url: '/business/register',
            params: data
        })
    },
    login(data = {}) {
        //登录接口
        return POST({
            url: '/business/login',
            params: data
        })
    },
    check(data = {}) {
        //校验
        return POST({
            url: '/business/check',
            params: data
        })
    },
    profile(data = {}) {
        //修改资料
        return UPLOAD({
            url: '/business/profile',
            params: data
        })
    },
    emailcode(data = {}) {
        return POST({
            url: '/business/emailcode',
            params: data
        })
    },
    attestation(data = {}) {
        return POST({
            url: '/business/attestation',
            params: data
        })
    },
    record(data = {}) {
        return POST({
            url: '/business/record',
            params: data
        })
    },
    baserecharge(data = {}) {
        return POST({
            url: '/business/recharge',
            params: data
        })
    },
    // 充值记录
    rechargerecord(data = {}) {
        return POST({
            url: '/business/rechargerecord',
            params: data
        })
    },
};